package com.taiji.oauth2.authorizeserver.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
public class ResourcesContorller {

  @GetMapping("/api/user")
  public Object principal(Principal principal) {
    return principal;
  }


  @GetMapping("/test")
  public Object noResource(){
    return "test";
  }

}
